]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
lint: Partially sync with gjs
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 18 Jan 2022 20:11:36 +0000 (21:11 +0100)
committerMarge Bot <marge-bot@gnome.org>
Tue, 25 Jan 2022 15:21:16 +0000 (15:21 +0000)
As in commit bf5129adc1, leave out putting the Formats module on
the verboten list.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2115>

lint/eslintrc-gjs.yml

index ba6c5103148061208b2d5fcfdc50e60bc34c723d..62fd4a2ddbf311a5434107b9282d33cd1d2176a7 100644 (file)
@@ -2,8 +2,7 @@
 # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 # SPDX-FileCopyrightText: 2018 Claudio André <claudioandre.br@gmail.com>
 env:
-  es6: true
-  es2020: true
+  es2021: true
 extends: 'eslint:recommended'
 plugins:
   - jsdoc
@@ -86,7 +85,10 @@ rules:
   linebreak-style:
     - error
     - unix
-  lines-between-class-members: error
+  lines-between-class-members:
+    - error
+    - always
+    - exceptAfterSingleLine: true
   max-nested-callbacks: error
   max-statements-per-line: error
   new-parens: error
@@ -253,5 +255,10 @@ globals:
   window: readonly
   TextEncoder: readonly
   TextDecoder: readonly
+  console: readonly
+  setTimeout: readonly
+  setInterval: readonly
+  clearTimeout: readonly
+  clearInterval: readonly
 parserOptions:
-  ecmaVersion: 2020
+  ecmaVersion: 2022